<?php
/**
 * Author Yulin
 * Email  dwzhanglong@126.com
 * Date   2017-8-19
 * Func   公共接口
 */
defined('IN_YuLin') || exit('NO PERMIT!');

if($a == 'secode')
{
	include_once LIB_PATH."class/Secoder.class.php";

	Secoder::$useNoise = true;
	Secoder::$useCurve = false;
	Secoder::entry();
	exit;

	// useage
	/*
	YL_Security_Secoder::$useNoise = false;  // 要更安全的话改成true
	YL_Security_Secoder::$useCurve = true;
	YL_Security_Secoder::entry();
	*/

	/*
	// 验证验证码
	if (!YL_Security_Secoder::check(@$_POST['secode'])) {
		print 'error secode';
	}
	*/
}
else if($a == 'notice')	//	最新公告
{
	$notice = $db->getall('SELECT * FROM '.Table('article').' WHERE cid = 3 AND status = 1 ORDER BY id DESC LIMIT 5');
}